/*
 * ApproveAction
 * 
 * Version 1.0
 *
 * 14-08-08
 * 
 * Modification Logs:
 *   DATE        AUTHOR      DESCRIPTION
 *  --------------------------------------------------------
 *  14-8-08		TuHA		Tao lop
 */


package vn.fpt.fsoft.fcos.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

/**
 * ApproveAction: this is a class
 * @author TuHA
 * @version 1.0
 */
public class ApproveAction extends Action {
	
	/**
	 * @param mapping is the ActionMapping object 
	 * @param form is the LoginForm object
	 * @param request is the HttpRequest object of this process
	 * @param reponse is the HttpReponse object of this process
	 * @return the ActionForward object of this action 
	 */
	public ActionForward execute (ActionMapping mapping,
				ActionForm form,
				HttpServletRequest request,
				HttpServletResponse response) throws Exception {
		
		// Perform casting form into an instance of ApproveForm (approveForm)

		// Check UserEntity is existed in the session with key "SK_USER_ENTITY" or not?

		// If processId of orderForm is empty:
		// return ActionForward of "init"
		

		return mapping.findForward("success");
	}
}
